#ifndef TEXTURE_H
#define TEXTURE_H

#include <d3dx9.h>
#include <d3d9.h>

class Texture
{
	private:
									///Direct3DDevice
		LPDIRECT3DDEVICE9 d3ddev;
									///Handle to texture
		LPDIRECT3DTEXTURE9 pTexture;
									///Texture Width
		int width;
									///Texture Height
		int height;
									///ID
		int tex_ID;

	public:
											///Constructor
		Texture(LPDIRECT3DDEVICE9 d3ddev);
											///Destructor
		~Texture();
												///Load Texture From File
		bool LoadTexture(const char * filename, int id=0);
												///Get Texture Width
		int GetWidth();
												///Get Texture Height
		int GetHeight();
												///Use Texture
		void UseTexture();
												///Get Texture
		LPDIRECT3DTEXTURE9 GetTexture();
												
		bool operator== (const Texture & right);
		bool operator!= (const Texture & right);

};

#endif